package com.chat.entry.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.chat.entry.enums.GroupMemberIsDisturb;
import com.chat.entry.enums.GroupMemberRole;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 群成员表
 * </p>
 *
 * @author author
 * @since 2025-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("group_member")
@ApiModel(value="GroupMember对象", description="群成员表")
public class GroupMember implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "群聊id")
    private Integer groupId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "角色（1：群主owner， 2：管理员admin， 3：群员member）")
    private GroupMemberRole role;

    @ApiModelProperty(value = "是否免打扰（0：否， 1：是）")
    private GroupMemberIsDisturb isDisturb;

    @ApiModelProperty(value = "加入时间")
    private LocalDateTime joinTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;


}
